package com.wn.class30.entity;

import java.io.Serializable;

/**
 * franchisees
 * @author 
 */
public class Franchisees implements Serializable {
    /**
     * 加盟商id
     */
    private Integer franchiseesId;

    /**
     * 加盟商姓名
     */
    private String name;

    /**
     * 加盟商电话
     */
    private String tel;

    /**
     * 加盟商所在城市
     */
    private String city;

    /**
     * 加盟商状态
     */
    private Integer status;

    private static final long serialVersionUID = 1L;

    public Integer getFranchiseesId() {
        return franchiseesId;
    }

    public void setFranchiseesId(Integer franchiseesId) {
        this.franchiseesId = franchiseesId;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getTel() {
        return tel;
    }

    public void setTel(String tel) {
        this.tel = tel;
    }

    public String getCity() {
        return city;
    }

    public void setCity(String city) {
        this.city = city;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        Franchisees other = (Franchisees) that;
        return (this.getFranchiseesId() == null ? other.getFranchiseesId() == null : this.getFranchiseesId().equals(other.getFranchiseesId()))
            && (this.getName() == null ? other.getName() == null : this.getName().equals(other.getName()))
            && (this.getTel() == null ? other.getTel() == null : this.getTel().equals(other.getTel()))
            && (this.getCity() == null ? other.getCity() == null : this.getCity().equals(other.getCity()))
            && (this.getStatus() == null ? other.getStatus() == null : this.getStatus().equals(other.getStatus()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getFranchiseesId() == null) ? 0 : getFranchiseesId().hashCode());
        result = prime * result + ((getName() == null) ? 0 : getName().hashCode());
        result = prime * result + ((getTel() == null) ? 0 : getTel().hashCode());
        result = prime * result + ((getCity() == null) ? 0 : getCity().hashCode());
        result = prime * result + ((getStatus() == null) ? 0 : getStatus().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", franchiseesId=").append(franchiseesId);
        sb.append(", name=").append(name);
        sb.append(", tel=").append(tel);
        sb.append(", city=").append(city);
        sb.append(", status=").append(status);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}